odoo.define('odoo-echarts.MyTemplateWidget', function (require) {
    'use strict';

    var AbstractAction = require('web.AbstractAction');
    var core = require('web.core');
    var QWeb = core.qweb;

    var MyTemplateWidget = AbstractAction.extend({
        template: 'odoo-echarts.my_template',

        start: function () {
            var self = this;
            return this._super().then(function () {
                var $content = $(QWeb.render(self.template, {}));
                self.$el.append($content);
            });
        },
    });

    core.action_registry.add('my_template_widget', MyTemplateWidget);
});
